<template>
  <div>
    <el-menu class="el-menu-demo" router="true" mode="horizontal" background-color="#545c64" text-color="#fff" active-text-color="#ffd04b">
      <el-menu-item index="/">首页</el-menu-item>
      <el-submenu index="2">
        <template slot="title">我的工作台
</template>
    <el-menu-item index="plan">订单计划</el-menu-item>
    <el-menu-item index="board">生产看板</el-menu-item>
    <el-menu-item index="qa">质检管理</el-menu-item>
  </el-submenu>
  <el-menu-item index="3"><a href="https://www.ele.me" target="_blank">订单管理</a></el-menu-item>
</el-menu>
  <router-view id = "workspace"></router-view>
  </div>
</template>

<script>
  export default {
    name: 'workspace',
    methods: {
      goToPlan: function() {
        console.log("go to plan");
        router.push({
          path: 'plan'
        })
      }
    },
    data() {
      return {
        msg: 'Welcome to Your Vue.js App'
      }
    }
  }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
  a {
    text-decoration: none
  }
  
  .row-bg {
    margin-top: 100px;
  }
  
  .grid-content {
    border-radius: 4px;
    min-height: 100px;
  }
</style>
